﻿using MovieFu.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MovieFu.Controllers
{
    public class HomeController : Controller
    {
        private IMovieRepository _movieRepository;

        public HomeController(IMovieRepository movieRepository)
        {
            _movieRepository = movieRepository;
        }

        public ActionResult Index()
        {
            ViewBag.MovieCount = _movieRepository.Get().Count();
            return View();
        }

    }
}
